function checkBrowser() {
    var userAgent = navigator.userAgent;
    var MSIE = "MSIE";
    var Chrome = "Chrome";
    var Firefox = "Firefox";
    var ver;
    var browser = "";
    if (userAgent.indexOf(MSIE) > -1) {
        ver = userAgent.substr(userAgent.indexOf(MSIE) + MSIE.length, 6).trim();
        browser = MSIE + ":" + ver;
    } else if (userAgent.indexOf(Chrome) > -1) {
        ver = userAgent.substr(userAgent.indexOf(Chrome) + Chrome.length + 1, 12);
        browser = Chrome + ":" + ver;
    } else if (userAgent.indexOf(Firefox) > -1) {
        ver = userAgent.substr(userAgent.indexOf(Firefox) + Firefox.length + 1, 10);
        browser = Firefox + ":" + ver;
    }
    
    console.info(userAgent);
    return browser;
}

function checkProperty(obj){
    if (obj == null || obj == undefined || obj == "") {
        return false;
    }
    return true;
}
